package com.itheima.work;

import java.util.TreeSet;

/**
 * @auther Macrydy
 * @date 2020/6/30 21:28
 */
public class Test8 {
    public static void main(String[] args) {
        TreeSet<Student1> set = new TreeSet<>();
        set.add(new Student1("liusan",20,90.0f));
        set.add(new Student1("lisi",22,90.0f));
        set.add(new Student1("wangwu",20,99.0f));
        set.add(new Student1("sunliu",22,100.0f));

        System.out.println(set);
    }
}
